import request from '@/utils/request'

// 查询分类
export function queryTreeList(query) {
  return request({
    url: '/system/type/selectOReferrerTypeTree',
    method: 'get',
    params: query
  })
}

// 查询关联律师
export function getRelationLawyerList(query) {
  return request({
    url: '/system/type/getRelationLawyerList',
    method: 'get',
    params: query
  })
}

// 查询关联律所
export function getReferrerLawfirmList(query) {
  return request({
    url: '/system/type/getReferrerLawfirmList',
    method: 'get',
    params: query
  })
}

// 获得简明报告及数据说明
export function getExplain(query) {
  return request({
    url: '/system/type/getExplain',
    method: 'get',
    params: query
  })
}

// 修改简明报告及数据说明
export function saveExplain(data) {
  return request({
    url: '/system/type/saveExplain',
    method: 'post',
    data: data
  })
}

// 获得指标
export function getQuota(query) {
  return request({
    url: '/system/type/getQuota',
    method: 'get',
    params: query
  })
}

// 修改指标
export function saveQuota(data) {
  return request({
    url: '/system/type/saveQuota',
    method: 'post',
    data: data
  })
}
